package com.lantosec.hmrp.modules.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lantosec.hmrp.core.kit.PageVO;
import com.lantosec.hmrp.modules.monitor.entity.WarningTotalEntity;
import com.lantosec.hmrp.modules.system.entity.SysBigscreenSql;
import com.lantosec.hmrp.modules.system.mapper.SysBigscreenSqlMapper;
import com.lantosec.hmrp.modules.system.service.ISysBigscreenSqlService;
import com.lantosec.hmrp.modules.warning.entity.WarningData;
import lombok.extern.log4j.Log4j2;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 大屏接口SQL 服务实现类
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-17
 */
@Service
@Primary
@Log4j2
public class SysBigscreenSqlServiceImpl extends ServiceImpl<SysBigscreenSqlMapper, SysBigscreenSql> implements ISysBigscreenSqlService {
    @Override
    public WarningTotalEntity getSqlResult(String sqlResult) {
        return baseMapper.getSqlResult(sqlResult);
    }

    @Override
    public List<WarningTotalEntity> getSqlResultList(String sqlResult) {
        return baseMapper.getSqlResultList(sqlResult);
    }

    @Override
    public PageVO<WarningData> getWarningDetails(PageVO<WarningData> page, String sqlContent) {
        return baseMapper.getWarningDetails(page,sqlContent);
    }
}
